package common.config.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 理论上不可能发生的异常<br/>
 * 当代码运行至不应到达的位置时，抛出此异常
 *
 * @author 米泽鹏
 * @since 2023-11-6 下午 6:39
 */
@Getter
@Setter
public class ShouldNeverHappenException extends CustomException {

	public ShouldNeverHappenException() {
	}

	public ShouldNeverHappenException(Throwable cause) {
		super(cause);
	}

	public ShouldNeverHappenException(BaseErrorInfoInterface errorInfoInterface) {
		super(errorInfoInterface);
	}

	public ShouldNeverHappenException(BaseErrorInfoInterface errorInfoInterface, Throwable cause) {
		super(errorInfoInterface, cause);
	}

	public ShouldNeverHappenException(String message) {
		super(message);
	}

	public ShouldNeverHappenException(Integer code, String message) {
		super(code, message);
	}

	public ShouldNeverHappenException(Integer code, String message, Throwable cause) {
		super(code, message, cause);
	}

}
